// 导入组件

const queryScore = () => import('@/views/user/queryScore.vue')
const Layout = () => import('@/layout/index.vue')
const center = () => import('@/views/user/center.vue')
const password = () => import('@/views/user/password.vue')
const announcement = () => import('@/views/user/announcement.vue')

// 导出该组件
export default ([
    {
        path: "/user",
        component: Layout,
        name: 'user',
        meta: {
            title: '用户中心',
        },
        icon: 'Histogram',
        children: [
            {
                path: '/queryScore',
                name: 'queryScore',
                component: queryScore,
                meta: {
                    title: '查询成绩',
                },
                hidden: false
            },
            {
                path: '/ownerCourse',
                name: 'ownerCourse',
                component: () => import('@/views/user/ownerCourse.vue'),
                meta: {
                    title: '课程计划',
                },
                hidden: false
            },
            {
                path: '/center',
                name: 'center',
                component: center,
                meta: {
                    title: '个人中心',
                },
                hidden: false
            },
            {
                path: '/password',
                name: 'password',
                component: password,
                meta: {
                    title: '密码管理',
                },
                hidden: false
            },
            {
                path: '/announcement',
                name: 'announcement',
                component: announcement,
                meta: {
                    title: '发布公告',
                },
                hidden: false
            }
        ]
    }
])